package com.gohi.main.util.Cache;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.gohi.main.store.hbm.BaseStoreClass;
import com.gohi.main.store.hbm.ShopgooBrand;
import com.gohi.main.system.hbm.ShopgooArea;
import com.gohi.main.system.hbm.ShopgooAreaBusiness;

public class MainCache {
	//系统区域的List
	private static List<ShopgooArea> arealist =new ArrayList<ShopgooArea>();
	//获取所有的商户分类
	private static List<BaseStoreClass> classlist =new ArrayList<BaseStoreClass>();
	//品牌的list
	private static List<ShopgooBrand> brandlist =new ArrayList<ShopgooBrand>();
	//商圈信息
	private static Map<Integer, List<ShopgooAreaBusiness>> businessmap =new HashMap<Integer, List<ShopgooAreaBusiness>>();
	
	//区域级联的信息
	private static Map<Integer, Map<String,List<ShopgooArea>>> areaMap =new HashMap<Integer, Map<String,List<ShopgooArea>>>();
	
	
	public static List<ShopgooArea> getArealist() {
		return arealist;
	}
	public static void setArealist(List<ShopgooArea> arealist) {
		MainCache.arealist = arealist;
	}
	public static List<BaseStoreClass> getClasslist() {
		return classlist;
	}
	public static void setClasslist(List<BaseStoreClass> classlist) {
		MainCache.classlist = classlist;
	}
	public static List<ShopgooBrand> getBrandlist() {
		return brandlist;
	}
	public static void setBrandlist(List<ShopgooBrand> brandlist) {
		MainCache.brandlist = brandlist;
	}
	public static Map<Integer, List<ShopgooAreaBusiness>> getBusinessmap() {
		return businessmap;
	}
	
	public static  List<ShopgooAreaBusiness> getBusinessmap(Integer areid) {
		
		return businessmap.get(areid);
	}
	
	public static void setBusinessmap(
			Map<Integer, List<ShopgooAreaBusiness>> businessmap) {
		MainCache.businessmap = businessmap;
	}
	public static Map<Integer, Map<String, List<ShopgooArea>>> getAreaMap() {
		return areaMap;
	}
	public static Map<String, List<ShopgooArea>> getAreaMap(Integer areaid) {
		return areaMap.get(areaid);
	}
	
	public static void setAreaMap(
			Map<Integer, Map<String, List<ShopgooArea>>> areaMap) {
		MainCache.areaMap = areaMap;
	}
	
	
	
	
	
	
	
}
